package com.xsmart.oa.api.wx;

import com.xsmart.common.entity.RequestBean;
import com.xsmart.oa.services.AdminLoginService;
import com.xsmart.oa.services.wx.UserApplyManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户请求处理类
 */
@RestController
@RequestMapping("/api")
public class UserApplyManagerController {
    @Autowired
    UserApplyManagerService userApplyManagerService;

    @PostMapping(value = "/v1/UserApplyManagerService/addUserTask")
    public Object login(@ModelAttribute RequestBean requestBean, HttpServletRequest request) {
        return userApplyManagerService.addUserTask(requestBean);
    }

}
